package com.whu.waterworks.service;

import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.List;

import com.whu.waterworks.dao.QualityNormolDao;
import com.whu.waterworks.dao.QualityReportDataDao;
import com.whu.waterworks.dao.WaterPlantNormDao;
import com.whu.waterworks.dto.QualityReportDataDto;
import com.whu.waterworks.model.Antisseptic;
import com.whu.waterworks.model.QualityNonNormol;
import com.whu.waterworks.model.QualityNormol;
import com.whu.waterworks.model.WaterPlantNorm;

public class QualityReportDataService {
	private QualityReportDataDao qualityReportDataDao;		
	
	public QualityReportDataDao getQualityReportDataDao() {
		return qualityReportDataDao;
	}

	public void setQualityReportDataDao(QualityReportDataDao qualityReportDataDao) {
		this.qualityReportDataDao = qualityReportDataDao;
	}
	
	
	public WaterPlantNorm getWaterPlantNormById(String id){
		return qualityReportDataDao.getWaterPlantNormById(id);
	}
	
	public QualityNormol getLimitedQualityNormol(){
		return qualityReportDataDao.getLimitedQualityNormol(); 
	}
	public ArrayList<QualityNormol> getQualityNormolById(String waterPlantId) {
		return qualityReportDataDao.getQualityNormolById(waterPlantId);
	}
	public String getQualityNormolStandardValue(String testItem){
		return qualityReportDataDao.getQualityNormolStandardValue(testItem);
	}
	public ArrayList<QualityNonNormol> getQualityNonNormolById(String waterPlantId){
		return qualityReportDataDao.getQualityNonNormolById(waterPlantId);
	}
	public QualityNonNormol getLimitedQualityNonNormol(){
		return qualityReportDataDao.getLimitedQualityNonNormol(); 
	}
	public String getQualityNonNormolStandardValue(String testItem){
		return qualityReportDataDao.getQualityNonNormolStandardValue(testItem);
	}
	public ArrayList<Antisseptic> getAntissepticById(String waterPlantId){
		return qualityReportDataDao.getAntissepticById(waterPlantId);
	}
	public Antisseptic getLimitedAntisseptic(){
		return qualityReportDataDao.getLimitedAntisseptic();
	}
	public String getAntissepticStandardValue(String testItem){
		return qualityReportDataDao.getAntissepticStandardValue(testItem);
	}
	public ArrayList<QualityNormol> getQualityNormolByIdAndMonth(String waterPlantId, String time){
		return qualityReportDataDao.getQualityNormolByIdAndMonth(waterPlantId,time);
	}
	public ArrayList<QualityNonNormol> getQualityNonNormolByIdAndMonth(String waterPlantId, String time){
		return qualityReportDataDao.getQualityNonNormolByIdAndMonth(waterPlantId,time);
	}
	public ArrayList<Antisseptic> getAntissepticByIdAndMonth(String waterPlantId, String time){
		return qualityReportDataDao.getAntissepticByIdAndMonth(waterPlantId,time);
	}
}
